package com.zls;

import com.zls.mapper.ProjectMapper;
import com.zls.pojo.Project;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;
@RunWith(SpringRunner.class)
@SpringBootTest(classes = ProjectApplication.class)
public class projet {
    @Autowired
    private ProjectMapper projectMapper;
    @Test
    public void demo01(){
        List<Project> all = projectMapper.findAll();
        all.stream().forEach(o->System.out.println(o));
    }

}
